package com.vitech.javacertification.oo;

public class StaticOverride {

	static String mark = "Mark from Super class";

//	public StaticOverride(){
//		System.out.println("Building StaticOverride");
//	}
	
	static String getStaticMark() {
		return mark;
	}

	String method(){
		return "Method from Superclass";
	}
	
	public static void main(String... s) {

		StaticOverride d = new Overriden();

		System.out.println(d.getStaticMark());
		
		System.out.println(d.method());

	}
}

class Overriden extends StaticOverride {

	static String mark = "Mark from Subclass";

	
	public Overriden(){
		System.out.println("Building Subclass");
	}

	
	static String getStaticMark() {
		return mark;
	}

	
	public String method(){
		return "Method frum Subclass";
	}
	
}
